package mqttsender

import (
	"energy-amiot-platform/middleware"

	"github.com/gin-gonic/gin"
)

func Routers(r *gin.Engine) {
	// 需管理员权限，请求中提供产品标识
	r.POST("mqtt/sender", middleware.AuthToken(), create)
	r.GET("mqtt/secret/show", middleware.AuthToken(), showSecret)
	r.POST("mqtt/secret/change", middleware.AuthToken(), changeSecret)
}
